package erlwitch;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Butler b = new Butler(3) {

			@Override
			public void process() {
				System.out.println("Doing stuff!!!");
			}
			
		};
		Thread t = new Thread(b);
		t.start();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(true) {
			try {
				br.readLine();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			System.out.println("Resetting...");
			b.reset();
		}
	}

}
